package com.dreammakerteam.frameworkdemo.qzhj.domain;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 产品类型
 * </p>
 *
 * @author Yanghu
 * @since 2017-10-11
 */
@TableName("d_qzhj_product_type")
public class DQzhjProductTypeDo extends Model<DQzhjProductTypeDo> {


	private static final long serialVersionUID = -3663045685050887281L;
	/**
     * id
     */
	private Long id;
    /**
     * 类型名
     */
	private String name;
    /**
     * 父类型
     */
	@TableField("parent_id")
	private Long parentId;


	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "DQzhjProductTypeDo{" +
				"id=" + id +
				", name='" + name + '\'' +
				", parentId=" + parentId +
				'}';
	}

	public Long getId() {
		return id;
	}

	public DQzhjProductTypeDo setId(Long id) {
		this.id = id;
		return this;
	}

	public String getName() {
		return name;
	}

	public DQzhjProductTypeDo setName(String name) {
		this.name = name;
		return this;
	}

	public Long getParentId() {
		return parentId;
	}

	public DQzhjProductTypeDo setParentId(Long parentId) {
		this.parentId = parentId;
		return this;
	}
}
